package com.tang.client;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyChannelInitializer extends ChannelInitializer<SocketChannel> {

    @Override
    protected void initChannel(SocketChannel socketChannel) throws Exception {
        log.info("链接报告开始！");
        log.info("本客户端链接到服务端了！channelId：{}", socketChannel.id());
        log.info("链接报告完毕！");
    }

}
